﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PageFlow : System.Web.UI.Page
{
    protected void Page_Init(object sender, EventArgs e)
    {
        lblEvent.Text += "Page.Init event handled.<br />";
    }

    protected void Page_Load(object sender, EventArgs e)
    {
      // Trace.IsEnabled = true;
        lblEvent.Text += "Page.Load event handled.<br />";
        if (Page.IsPostBack)
        {
            lblEvent.Text += "<i>This is not the first time you have seen this page.</i><br />";
        }
    }

    protected void Page_PreRender(object sender, EventArgs e)
    {
        lblEvent.Text += "Page.PreRender event handled.<br />";
    }

    protected void Page_Unload(object sender, EventArgs e)
    {
        lblEvent.Text += "Page.Unload event handled.<br />";
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        lblEvent.Text += "Button1.Click event handled.<br />";
    }
}